package com.dingyx.ps.feign.api;

import com.dingyx.ps.feign.hystrix.ThirdPartServiceHystrix;
import com.dingyx.ps.model.ReturnT;
import com.dingyx.ps.model.thirdpart.VerifyCodePO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 库内服务 Feign-Client
 *
 * @author WangRuiJie
 * @className InsideFeignService
 * @date 2020/8/10 10:03
 */
@FeignClient(value = "xianniu-third-party", fallback = ThirdPartServiceHystrix.class)
public interface ThirdPartFeignService {

    /**
     * 分页查询合同列表
     * @return
     */
    @PostMapping("sms/sendVerifyCode")
    ReturnT sendVerifyCode(@RequestBody @Validated VerifyCodePO verifyCodePO);

    /**
     * <校验短信验证码>
     * @param verifyCodePO 参数对象
     * @return com.xianniu.tp.model.ReturnT
     * @author ZhangYang
     * @date 2021/3/23 19:17
     * @version 1.0.0
     */
    @PostMapping("sms/checkVrifyCode")
    ReturnT checkVerifyCode(VerifyCodePO verifyCodePO);
}
